from rest_framework import serializers
from images import models

class Images_serializer(serializers.ModelSerializer):
    class Meta:
        fields='__all__'
        model=models.Images


#二级
class Address_ser(serializers.ModelSerializer):
    class Meta:
        model=models.Address
        fields=['id','name']

class Adderss_serializer(serializers.ModelSerializer):
    numbers=Address_ser(many=True)
    class Meta:

        fields='__all__'
        model=models.Address

